/*******************************************************************************
 * Project Key : CPPII
 * Create on 2018-01-20 18:03:622
 * Copyright (c) 2008 - 2019.银盛支付服务股份有限公司版权所有. 粤ICP备14098269
 * 注意：本内容仅限于银盛支付服务股份有限公司内部传阅，禁止外泄以及用于其他的商业目的
 ******************************************************************************/
package org.jeecg.modules.yinsheng.command.refund;

import org.jeecg.modules.yinsheng.annotation.Length;
import org.jeecg.modules.yinsheng.annotation.NotBlank;
import org.jeecg.modules.yinsheng.annotation.Pattern;
import org.jeecg.modules.yinsheng.command.base.BaseBizReqCommand;


/**
 * 
 * <P>申请退款订单请求参数</P>
 * 
 * @version $Id$
 * @user zcw 2021年4月1日 下午4:27:06
 */
public class ApplyRefundRequestCommand extends BaseBizReqCommand {

	/**
	 * TODO
	 */
	private static final long serialVersionUID = 1L;

	@NotBlank(message = "原订单号不能为空")
	@Length(max = 32, message = "原订单号不能为空最大长度不能超过32个字符")
	private String origMerchantOrderNo;

	@NotBlank(message = "原交易金额不能为空")
	@Pattern(regexp = "^([0-9]+|[0-9]{1,3}(,[0-9]{3})*)(.[0-9]{1,2})?$", message = "交易金额格式不正确")
	private String origAmount;

	@NotBlank(message = "退款订单号不能为空")
	@Length(max = 32, message = "退款订单号不能为空最大长度不能超过32个字符")
	private String refundOrderNo;

	@NotBlank(message = "退款金额不能为空")
	@Pattern(regexp = "^([0-9]+|[0-9]{1,3}(,[0-9]{3})*)(.[0-9]{1,2})?$", message = "退款金额格式不正确")
	private String refundAmount;

	public String getOrigMerchantOrderNo() {
		return origMerchantOrderNo;
	}

	public ApplyRefundRequestCommand setOrigMerchantOrderNo(String origMerchantOrderNo) {
		this.origMerchantOrderNo = origMerchantOrderNo;
		return this;
	}

	public String getRefundOrderNo() {
		return refundOrderNo;
	}

	public ApplyRefundRequestCommand setRefundOrderNo(String refundOrderNo) {
		this.refundOrderNo = refundOrderNo;
		return this;
	}

	public String getOrigAmount() {
		return origAmount;
	}

	public ApplyRefundRequestCommand setOrigAmount(String origAmount) {
		this.origAmount = origAmount;
		return this;
	}

	public String getRefundAmount() {
		return refundAmount;
	}

	public ApplyRefundRequestCommand setRefundAmount(String refundAmount) {
		this.refundAmount = refundAmount;
		return this;
	}

}
